package kr.hkit.summary_java.erp.serviceUI;

import javax.swing.JOptionPane;
import javax.swing.JPanel;

import java.awt.GridLayout;

import javax.swing.JLabel;

import kr.hkit.myframework.uicomp.InputPanel;
import kr.hkit.summary_java.erp.dao.DaoInterface;
import kr.hkit.summary_java.erp.dto.Department;

import java.awt.BorderLayout;

import javax.swing.JButton;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.sql.SQLException;

public class PanelDepartmentUI extends JPanel {
	private InputPanel pDeptno;
	private InputPanel pDeptName;
	private InputPanel pFloor;
	
	private DaoInterface<Department> dao;

	/**
	 * Create the panel.
	 */
	public PanelDepartmentUI() {

		initialize();
	}
	
	public void setDao(DaoInterface<Department> dao) {
		this.dao = dao;
	}

	private void initialize() {
		setLayout(new BorderLayout(0, 0));
		
		JPanel panel_Center = new JPanel();
		add(panel_Center, BorderLayout.CENTER);
		panel_Center.setLayout(new GridLayout(0, 1, 0, 0));
		
		pDeptno = new InputPanel("부서번호");
		panel_Center.add(pDeptno);
		
		pDeptName = new InputPanel("부서명");
		panel_Center.add(pDeptName);
		
		pFloor = new InputPanel("위치");
		panel_Center.add(pFloor);
	}

	public InputPanel getpDeptno() {
		return pDeptno;
	}

	public void setpDeptno(InputPanel pDeptno) {
		this.pDeptno = pDeptno;
	}

	public InputPanel getpDeptName() {
		return pDeptName;
	}

	public void setpDeptName(InputPanel pDeptName) {
		this.pDeptName = pDeptName;
	}

	public InputPanel getpFloor() {
		return pFloor;
	}

	public void setpFloor(InputPanel pFloor) {
		this.pFloor = pFloor;
	}
	
	
}
